<?php

/*
 * CopyRight  : (C)2012-2099 HaoTeam Inc.
 * Document   : route.php
 * Created on : 2020-7-24 17:03:50
 * Author     : Tiger <1192851302@qq.com>
 * Description: This is NOT a freeware, use is subject to license terms.
 *              这即使是一个免费软件,使用时也请遵守许可证条款,得到当时人书面许可.
 *              未经书面许可,不得翻版,翻版必究;版权归属 HaoTeam Inc;
 */

use think\facade\Route;

Route::any('/', function () {
    return;
});

//微信管理类
Route::group(function () {
    Route::post('app/index', 'App/index')->name('WechatAppIndex'); //小程序管理
    Route::post('app/create', 'App/create')->name('WechatAppCreate'); //小程序创造
    Route::post('app/update', 'App/update')->name('WechatAppUpdate'); //小程序更新
    Route::post('app/delete', 'App/delete')->name('WechatAppDelete'); //小程序删除
    Route::post('app/status', 'App/status')->name('WechatAppStatus'); //小程序状态
    Route::post('app/addon', 'App/addon')->name('WechatAppAddon'); //小程序设置应用
    Route::get('app/console/:addon/:mid', 'App/console')->name('WechatAppConsole'); //小程序控制台
    Route::get('app/config', 'App/config')->name('WechatAppConfig'); //小程序应用设置
    Route::post('app/config/write', 'App/config_write')->name('WechatAppConfigWrite'); //小程序应用设置
    Route::get('app/view/:nodes', 'App/view')->name('WechatAppView'); //小程序输出
    Route::post('app/addons', 'App/addons')->name('WechatAppAddons'); //小程序应用管理
    Route::post('app/addons/install', 'App/addons_install')->name('WechatAppAddonsInstall'); //应用安装
    Route::post('app/addons/uninstall', 'App/addons_uninstall')->name('WechatAppAddonsUnInstall'); //应用卸载
    Route::post('app/addons/update', 'App/addons_update')->name('WechatAppAddonsUpdate'); //应用更新
    Route::post('app/addons/status', 'App/addons_status')->name('WechatAppAddonsStatus'); //应用状态
})->middleware(\haoteam\http\middleware\AuthTokenMiddleware::class, true);
Route::miss(function() {
    return 'HaoTeam Inc.';
});
